home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / scottman / form4.frm < prev    next >
Text File  |  1995-09-06  |  2KB  |  82 lines

  1. VERSION 2.00
  2. Begin Form Form4 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "Rename"
  6.    ClientHeight    =   1755
  7.    ClientLeft      =   1680
  8.    ClientTop       =   7575
  9.    ClientWidth     =   4185
  10.    Height          =   2160
  11.    Left            =   1620
  12.    LinkTopic       =   "Form4"
  13.    MaxButton       =   0   'False
  14.    MinButton       =   0   'False
  15.    ScaleHeight     =   1755
  16.    ScaleWidth      =   4185
  17.    Top             =   7230
  18.    Width           =   4305
  19.    Begin CommandButton Command2 
  20.       Caption         =   "Cancel"
  21.       Height          =   615
  22.       Left            =   2280
  23.       TabIndex        =   3
  24.       Top             =   960
  25.       Width           =   1695
  26.    End
  27.    Begin CommandButton Command1 
  28.       Caption         =   "OK"
  29.       Height          =   615
  30.       Left            =   240
  31.       TabIndex        =   2
  32.       Top             =   960
  33.       Width           =   1455
  34.    End
  35.    Begin TextBox Text1 
  36.       Height          =   285
  37.       Left            =   1320
  38.       MaxLength       =   7
  39.       TabIndex        =   1
  40.       Top             =   240
  41.       Width           =   2655
  42.    End
  43.    Begin Label Label1 
  44.       BorderStyle     =   1  'Fixed Single
  45.       Caption         =   "Name"
  46.       Height          =   285
  47.       Left            =   240
  48.       TabIndex        =   0
  49.       Top             =   240
  50.       Width           =   975
  51.    End
  52. End
  53. Sub Command1_Click ()
  54. If z = 1 Then
  55.   form1.Label1.Caption = text1.Text
  56. End If
  57. If z = 2 Then
  58.   form1.Label2.Caption = text1.Text
  59. End If
  60. If z = 3 Then
  61.   form1.Label3.Caption = text1.Text
  62. End If
  63. If z = 4 Then
  64.   form1.Label4.Caption = text1.Text
  65. End If
  66. If z = 5 Then
  67.   form1.Label5.Caption = text1.Text
  68. End If
  69. If z = 6 Then
  70.   form1.Label6.Caption = text1.Text
  71. End If
  72. If z = 7 Then
  73.   form1.Label7.Caption = text1.Text
  74. End If
  75. form4.visible = false
  76. End Sub
  77.  
  78. Sub Command2_Click ()
  79. form4.Visible = False
  80. End Sub
  81.  
  82.